﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IPfiri
{
    class Client
    {
        private string nume;
        private string varsta;
        private List<AbstractProduct> carList = new List<AbstractProduct>();
        private static int clientNo = 0;
           

            
             public static void addClient()
             {
                 clientNo++;
             }
             public static void removeClient()
             {
                 clientNo--;
             }
             public static int howMany()
             {
                 return clientNo;
             }
             public void setNume(string n)
             {
                 nume = n;
             }

             public void setVarsta(string v)
             {
                 varsta = v;
             }

             public string getNume()
             {
                 return nume;
             }

             public string getVarsta()
             {
                 return varsta;
             }

             public void addCar(Car c)
             {
                 if (!carList.Contains(c))
                 {
                     carList.Add(c);
                 }
                
             }

             

             public void showCars()
             {
                 foreach (Car c in carList)
                 {


                     Console.WriteLine("___________________________________________");
                     
                     Console.WriteLine("COLOR: " + c.getCuloare() );
                     

                     Console.WriteLine("TRANSMISSION TYPE: "  + c.getTransmisie());
                     

                     Console.WriteLine("MOTOR " + c.getMotorizare());
                    
                     Console.WriteLine("SIZE: " + c.getDimensiuni());
                     

                     Console.WriteLine("OPTIONS: " + c.getDotari());
                     
                     Console.WriteLine("___________________________________________");
                    
                     


                 }
             }
    }
}
